import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
os.chdir("C:\\Users\\ccc\\Downloads\\PythonMasteryLab-master\\PythonMasteryLab-master\\csv原始数据\\")
df = pd.read_excel('user_behavior.xlsx')
print(df.head())
print('*'*20)
print(df.info())
print('*'*20)
print(df.describe())
print('*'*20)
print(df.tail(4))
print('*'*20)
print('查看数据类型:'+'\n'+str(df.dtypes))
print('*'*20)
print('查看维度:'+str(df.ndim))
print('*'*20)
print('查看形状:'+str(df.shape))
print('*'*20)
print('查看元素个数:'+str(df.size))



